<?php

/**
 * Subclass for representing a row from the 'reaction_respect' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ReactionRespect extends BaseReactionRespect
{
	
	public function save($con = null){
		//Aantal respects ophogen voor deze comment!
		$num_respects = ReactionPeer::getNumRespectsForReaction($this->getReaction());
		$this->getReaction()->setNumRespects($num_respects+1);
		$this->getReaction()->save();
		parent::save($con);
	}
}
